package indi.zhifa.engine.redis.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;

import java.time.Duration;

@Data
public class DiyRedisProperties extends RedisProperties {
    boolean enabled;
    public DiyRedisProperties() {
        super();
        super.setTimeout(Duration.ofSeconds(30));
        super.setConnectTimeout(Duration.ofSeconds(30));
        super.setDatabase(-1);
        enabled = false;

    }
}
